import { View } from '@tarojs/components';
import React, { useState } from 'react';
import WechatAuth from '../wechatAuth';
import WechatLogin from '../wechatLogin';

const Status = {
  // Auth: 'Auth',
  Login: 'Login',
};

const WechatWrap = ({}) => {
  const [status, setStatus] = useState(Status.Login);
  return (
    <View>
      {status === Status.Auth ? (
        <WechatAuth
          next={() => {
            setStatus(Status.Login);
          }}
        />
      ) : (
        <WechatLogin />
      )}
    </View>
  );
};
export default WechatWrap;
